﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="CommentList.ascx.cs"
    Inherits="NCS.Module.CMS.Admin.WorkFlow.CommentList" %>
<table width="100%" cellpadding="5" cellspacing="0">
    <tr>
        <td>
            <asp:Label ID="lblUpdateStatus" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:HyperLink ID="lnkHeadline" runat="server" style="color:#E70000">[lnkHeadline]</asp:HyperLink><br><br>
            tại mục: <b>
                <asp:Label ID="Label1" runat="server">Label</asp:Label></b><br>
        </td>
    </tr>
    <tr>
        <td style="height: 10px;">
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataGrid ID="DataGrid1" AutoGenerateColumns="False" runat="server"
                Width="100%" AllowPaging="True" BorderColor="Gainsboro" BorderStyle="Solid" BorderWidth="1px"
                CellPadding="5" CssClass="Grid" PageSize="15" 
               OnItemCommand="DataGrid1_ItemCommand" OnItemDataBound="DataGrid1_ItemDataBound"
                OnPageIndexChanged="DataGrid1_PageIndexChanged">
                <AlternatingItemStyle CssClass="Grid_Raw2" VerticalAlign="Middle"></AlternatingItemStyle>
                <ItemStyle CssClass="Grid_Raw1" VerticalAlign="middle" Height="25px"></ItemStyle>
                <HeaderStyle Font-Bold="True" CssClass="Grid_Top" HorizontalAlign="Center"></HeaderStyle>
                <Columns>
                    <asp:BoundColumn Visible="False" DataField="Comment_ID" ReadOnly="True"></asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="Chấp nhận">
                        <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkCheck" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.Comment_Accept") %>'>
                            </asp:CheckBox>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:TemplateColumn HeaderText="Đã xem">
                        <HeaderStyle HorizontalAlign="Center" Width="10%" />
                        <ItemStyle HorizontalAlign="Center" />
                        <ItemTemplate>
                            <asp:CheckBox ID="chkRead" runat="server" Checked='<%# DataBinder.Eval(Container, "DataItem.Comment_Read") %>' />
                        </ItemTemplate>
                    </asp:TemplateColumn>
                    <asp:BoundColumn DataField="Comment_Content" HeaderText="Nội dung comment"></asp:BoundColumn>
                  
                    <asp:BoundColumn DataField="Comment_Email" HeaderText="Email"></asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="Ngày comment">
                        <HeaderStyle HorizontalAlign="Center" Width="140"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center" Width="140"></ItemStyle>
                        <ItemTemplate>
                            <asp:Label ID="lblDateTime" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateColumn>                    
                    <asp:TemplateColumn>
                        <HeaderStyle Width="5%"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" CommandName="del" runat="server">[Xoá]</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn>
                </Columns>
                <PagerStyle Mode="NumericPages" />
            </asp:DataGrid></td>
    </tr>
    <tr>
        <td style="height: 10px;">
        </td>
    </tr>
    <tr>
        <td align="center">
            <asp:Button ID="btnAcceptAll" runat="server" Text="Hiển thị ra ngoài" CssClass="Button" Width="94"
                OnClick="btnAcceptAll_Click"></asp:Button>&nbsp;
            <asp:Button ID="btnReadAll" runat="server"
                Text="Đã đọc" CssClass="Button" Width="94px" OnClick="btnReadAll_Click"></asp:Button>
        </td>
    </tr>
</table>
